package com.wk.user.fallback;

import org.springframework.stereotype.Component;

import com.wk.user.api.CollectApi;
import com.wk.user.bo.GoodsCollectBO;
import com.wk.user.dto.CollectAddOrDeleteParamDTO;
import com.wk.user.dto.CollectAddOrDeleteResultDTO;
import com.wk.user.po.Collect;

import com.wk.framework.enums.ResultCodeEnum;
import com.wk.framework.fallback.ApiFallback;
import com.wk.framework.utils.Result;

import java.util.List;

@Component
public class CollectApiFallback extends ApiFallback<Collect> implements CollectApi {
    @Override
    public Result<CollectAddOrDeleteResultDTO> addOrDelete(CollectAddOrDeleteParamDTO collectAddOrDeleteParamDTO) {
        return Result.failure(ResultCodeEnum.REMOTE_SERVICE_ERROR);
    }

    @Override
    public Result<List<GoodsCollectBO>> queryGoodsCollectList() {
        return Result.failure(ResultCodeEnum.REMOTE_SERVICE_ERROR);
    }
}
